<?php 
echo form_open_multipart(uri_string());
?>
    <table class="form">
            <tr>
                <td class="required label" style="width: 150px;"><?php echo lang('adv_position_page');?></td>
                <td>
                    <select name ="adv_page_id">
                        <option value="">Trang quảng cáo</option>
                        <?php 
                            foreach($list_page as $page){
                                echo '<option '.(($item->adv_page_id==$page->adv_page_id)?'selected="true"':'').' value="'.$page->adv_page_id.'">'.$page->adv_page_name.'</option>';
                            }
                        ?>
                    </select>
                </td>
            </tr>
         <tr>
            <td class="required label" style="width: 150px;"><?php echo lang('adv_position_code');?></td>
            <td><input type="text" name="adv_position_code" id="adv_position_code" class="w250" value="<?php echo $item->adv_position_code;?>"></td>
        </tr>
        <tr>
            <td class="required label" style="width: 150px;"><?php echo lang('adv_position_name');?></td>
            <td><input type="text" name="adv_position_name" id="adv_position_name" class="w250" value="<?php echo $item->adv_position_name;?>"></td>
        </tr>
        <tr>
            <td class="label" style="width: 150px;"><?php echo lang('adv_position_description');?></td>
            <td>
                 <textarea name="adv_position_description" style="width:400px; height:150px;"><?php echo $item->adv_position_description;?></textarea>
            </td>
        </tr> 
        <tr>
            <td class="required label" style="width: 150px;"><?php echo lang('adv_position_width');?></td>
            <td><input type="text" name="adv_position_width" id="adv_position_width" class="w20" value="<?php echo $item->adv_position_width;?>"></td>
        </tr>
        <tr>
            <td class="required label" style="width: 150px;"><?php echo lang('adv_position_height');?></td>
            <td><input type="text" name="adv_position_height" id="adv_position_height" class="w20" value="<?php echo $item->adv_position_height;?>"></td>
        </tr>
        <tr>
            <td class="required label" style="width: 150px;"><?php echo lang('adv_position_max_banner');?></td>
            <td><input type="text" name="adv_position_max_banner" id="adv_position_max_banner" class="w20" value="<?php echo $item->adv_position_max_banner;?>"></td>
        </tr>
        <tr>
            <td class="label"><?php echo lang('active_deactive');?></td>
            <td><input type="checkbox" name="bl_active" id="bl_active" <?php echo ($item->bl_active==1)?'checked':'';?>  value="1"  onclick="setCheckboxValue(this);"></td>
        </tr>
        <tr>
            <td colspan="2" align="center">
                <input type="submit" name="bt_submit" value="" class="capnhat">
            </td>
        </tr>  
    </table>
<?php echo form_close()?>